package hooks

type GiteePRHook struct {
	Action         string        `json:"action"`
	ActionDesc     string        `json:"action_desc"`
	PullRequest    PullRequest   `json:"pull_request"`
	Number         int           `json:"number"`
	Iid            int           `json:"iid"`
	Title          string        `json:"title"`
	Body           string        `json:"body"`
	Languages      []interface{} `json:"languages"`
	State          string        `json:"state"`
	MergeStatus    string        `json:"merge_status"`
	MergeCommitSha string        `json:"merge_commit_sha"`
	Url            string        `json:"url"`
	SourceBranch   string        `json:"source_branch"`
	SourceRepo     struct {
		Project    Repo `json:"project"`
		Repository Repo `json:"repository"`
	} `json:"source_repo"`
	TargetBranch string `json:"target_branch"`
	TargetRepo   struct {
		Project    Repo `json:"project"`
		Repository Repo `json:"repository"`
	} `json:"target_repo"`
	Project    Repo        `json:"project"`
	Repository Repo        `json:"repository"`
	Author     CommonUser  `json:"author"`
	UpdatedBy  CommonUser  `json:"updated_by"`
	Sender     CommonUser  `json:"sender"`
	TargetUser interface{} `json:"target_user"`
	Enterprise interface{} `json:"enterprise"`
	HookName   string      `json:"hook_name"`
	HookId     int         `json:"hook_id"`
	HookUrl    string      `json:"hook_url"`
	Password   string      `json:"password"`
	Timestamp  string      `json:"timestamp"`
	Sign       string      `json:"sign"`
}
